-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add e2e testcases for REST based remote functions #23777
base: master
Are you sure you want to change the base?
Conversation
ad8da3e
to
775acbd
Compare
775acbd
to
f2267cb
Compare
9aecd97
to
68d6174
Compare
62cd292
to
744087e
Compare
c79c741
to
128a517
Compare
38bee26
to
f518759
Compare
26886d1
to
2f9880d
Compare
ARG JMX_PROMETHEUS_JAVAAGENT_VERSION=0.20.0 | ||
|
||
ENV PRESTO_HOME="/opt/presto-server" | ||
|
||
COPY $PRESTO_PKG . | ||
COPY $PRESTO_CLI_JAR /opt/presto-cli | ||
COPY $PRESTO_REMOTE_SERVER_JAR /opt/presto-remote-server | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unwanted line
@@ -2,4 +2,6 @@ | |||
|
|||
set -e | |||
|
|||
java -Dconfig=/opt/function-server/etc/config.properties -jar /opt/presto-remote-server >> log1.txt 2>&1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove temporary log.
@@ -433,7 +439,7 @@ | |||
<args> | |||
<BUILD_TYPE>Release</BUILD_TYPE> | |||
<DEPENDENCY_IMAGE>presto-native-dependency:latest</DEPENDENCY_IMAGE> | |||
<EXTRA_CMAKE_FLAGS>-DPRESTO_ENABLE_TESTING=OFF</EXTRA_CMAKE_FLAGS> | |||
<EXTRA_CMAKE_FLAGS>-DPRESTO_ENABLE_REMOTE_FUNCTIONS=ON</EXTRA_CMAKE_FLAGS> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep existing CMAKE flags
// "-Dplugin.dir=/opt/presto-remote-server/function-server-plugin " + | ||
// "-Dconfig=/opt/presto-remote-server/function-server-etc/config.properties " + | ||
// "-jar /opt/presto-remote-server >> log1.txt 2>&1 & \n" + | ||
"-Dconfig=/opt/function-server/etc/config.properties -jar /opt/presto-remote-server >> log1.txt 2>&1 & \n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
computeActual("select remote.default.length(CAST('AB' AS VARBINARY))") | ||
.getMaterializedRows().get(0).getField(0).toString(), | ||
"2"); | ||
assertEquals( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add test for scalar functions which is available only in remote function server, not in native. like from_base32
presto> select remote.default.from_base32(CAST('MFRGG===' AS VARBINARY));
presto> select remote.default.to_base32(CAST('abc' AS VARBINARY));
2f9880d
to
f62f5d4
Compare
f62f5d4
to
c8c9686
Compare
Changes
Add end to end testcases for remote functions using container based test framework.
Dependency